package com.xxgc.cloud.modules.springcloudconsumergoods.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品
 * </p>
 *
 * @author Mr.Abel
 * @since 2022-12-19
 */
@Getter
@Setter
  @ApiModel(value = "Goods对象", description = "商品")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("商品名称")
      private String goodsName;

      @ApiModelProperty("价格")
      private BigDecimal price;

      @ApiModelProperty("原价（分）")
      private BigDecimal originalPrice;

      @ApiModelProperty("描述")
      private String goodsDescribe;

      @ApiModelProperty("份量")
      private String weight;

      @ApiModelProperty("口味")
      private String flavor;

      @ApiModelProperty("有效字段")
      private Boolean flag;

      @ApiModelProperty("更新时间")
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;

      @ApiModelProperty("创建时间")
        @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;


}
